London | 26-March-SDC | Ammad Ur Rehman | Sprint 2 | Shell Pipelines Exercises#479
Open
anosidium wants to merge 16 commits into
Open
London | 26-March-SDC | Ammad Ur Rehman | Sprint 2 | Shell Pipelines Exercises#479anosidium wants to merge 16 commits into
anosidium wants to merge 16 commits into
Conversation
cjyuan
reviewed
May 12, 2026
| # TODO: Write a command to show how many times anyone has entered and exited. | ||
| # It should be clear from your script's output that there have been 5 Entry events and 4 Exit events. | ||
|
|
||
| grep -oE 'Entry|Exit' events.txt | sort | uniq -c No newline at end of file |
There was a problem hiding this comment.
Note: An alternative to using grep is to extract the first field on each line using awk.
89f252d to
9e2df34
Compare
9e2df34 to
9be3d6a
Compare
Author
|
Thanks for the review, I've amended my solutions. |
cjyuan
reviewed
Jun 12, 2026
| # TODO: Write a command to count the number of files in the sample-files directory whose name starts with an upper case letter and doesn't contain any other upper case letters. | ||
| # Your output should be the number 7. | ||
|
|
||
| s-grep % ls -1 sample-files | grep '^[A-Z][^A-Z]*$' | wc -l No newline at end of file |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Learners, PR Template
Self checklist
Changelist
Completed all the exercises.